<?php
	defined('_JEXEC') or die('Restricted access');
	require_once(CUTEENGINE_BASE_COMPONENTS_PATH."base_display_component_class.php");
    //
    // t_container

    //
	class t_container extends t_base_display_component
	{	
		// property
		// public	
		// G
		const language_position_last = 1;
				
		// S
        const specific_parameters_position_last = 1;
		// method
		// protected
		//C
		protected function create_tags_structure()
		{
			//echo __METHOD__ . " - START <br>";
            global $g_javascript_namespace;            
            
            if (! $this->main_tag)
			{

				$this->main_tag = new t_base_tag(t_base_tag_type::btt_div,$this->name);
                //echo "new t_base_tag OK";
				$local_header_script_generator = $this->main_tag->header_script_generator;
				//
                $this->main_tag->include_child_str = true;
                $local_header_script_generator->add_style_sheet_property("#$this->name","display","inline-block");
				$local_header_script_generator->add_style_sheet_property("#$this->name",'position','relative');
				$local_header_script_generator->add_style_sheet_property("#$this->name",'background-color','Gold');
				$local_header_script_generator->add_style_sheet_property("#$this->name",'border','1px solid brown');
				$this->main_tag->set_editing_tags(true);
                //echo "PRIMA compute_tags_structure OK";
				$this->compute_tags_structure();
                //echo "DOPO compute_tags_structure OK";
			}
            //echo __METHOD__ . " - END <br>";
		}




		// G	
		public function get_language_position_last()
        {
            return self::language_position_last;
        }
        static function get_help_specific_parameter($a_index)
		{
			$local_return = 'NO HELP AVAILABLE';
			/*switch ($a_index) 
            {
                case self::specific_parameters_position_:
					$local_return = '';
				break;                
			}*/
			return $local_return;
		}
        static function get_default_specific_parameter($a_index)
		{
			$local_return = '';
			//echo "a_index: $a_index<br>";
			switch ($a_index) 
            {
                /*case self::specific_parameters_position_:
					$local_return = 'TRUE';
				break;                */
			}
			return $local_return;
		}	
        protected function get_specific_parameters_position_last()
        {
            return self::specific_parameters_position_last;
        }
		// I
		protected function initialize_query_parameters()
		{
		    
		}		

		// public
		public function __construct($a_cuteengine_component,$a_query_parameter) 
		{
			parent::__construct($a_cuteengine_component,$a_query_parameter);
			
		}	
				// C
		public function create_internal_parts()
        {
			global $g_database_namespace;
            parent::create_internal_parts();
			//echo __METHOD__  . "<br>";
			// MAIN FORM	
            $local_part = $this->add_new_part(-1,1,t_form_part,'@'.$this->name.'_part@@@',"",
				//fields
				"",
				// action 1
				""
                ,1);       
           
			//

        }
		//D
	/*	public function display_component()
		{
			parent::display_component();
		}*/
		// E
		public function execute_component_action()
		{
			$local_function = parent::execute_component_action();
            if ($local_function)
			{
				$this->$local_function();
            }
			else
			{
				 
			}
			//echo "argomento: ".$this->url_argument(self::main_url_argument_import_file_name);
			//$this->parse_source();
		}

	}
?>